package com.mall.client.eshop;

import java.util.List;

import com.mall.pojo.SaleEshop;
import com.mall.pojo.SaleEshopExample;
import com.mall.query.eshop.SaleEshopQuery;

public interface SaleEshopService {
	
	/**
	 * 根据id查找出售的网店
	 * @param id
	 * @return
	 */
	public SaleEshop getSaleEshopBySaleEshopId(Long id);
	
	/**
	 * 根据条件获得出售店铺集合
	 * @param saleEshopExample
	 * @return
	 */
	public List<SaleEshop> getSaleEshopListBySaleEshopExample(SaleEshopExample saleEshopExample);
	
	/**
	 * 插入待售店铺
	 * @param saleEshop
	 * @return
	 */
	public int insertSaleEshopBySaleEshop(SaleEshop saleEshop);
	
	/**
	 * 修改待售店铺信息
	 * @param saleEshop
	 * @return
	 */
	public int modifySaleEshopBySaleEshop(SaleEshop saleEshop,SaleEshop existSaleEshop);
	
	/**
	 * 删除店铺
	 * @param id
	 * @return
	 */
	public int deleteSaleEshopBySaleEshopId(Long id);
	
	/**
	 * 根据ids获取对象
	 * @param ids
	 * @return
	 */
	public List<SaleEshop> getSaleEshopListByIds(List<Long> ids);
	
	/**
	 * 店鋪編號
	 * @return
	 */
	public String generateEshopNo();
	
	/**
	 * 後台展示出售的店鋪列表
	 * @param saleEshopQuery
	 * @return
	 */
	public List<SaleEshop> getSaleEshopListBySaleEshopQuery(SaleEshopQuery saleEshopQuery);
	
	public List<SaleEshop> getSaleEshopListByQuery(SaleEshopQuery saleEshopQuery);
	
	public int getSaleEshopCountByQuery(SaleEshopQuery saleEshopQuery);
	
}
